/**
 * MCAddDownloadFileHost.java
 */
package commands.model;
import dataTypes.File;
import dataTypes.Host;

/**
 * Request to add a host to the list of hosts hosting a download file.
 * @author Michal Kolodziejski
 */
public class MCAddDownloadFileHost extends ModelCommand {
	/** A file of which the list of hosts is requested to be changed. */
	private File file;
	/** A host requested to be added to the list of hosts of the file. */
	private Host host;
	
	
	/**
	 * Constructor
	 * @param file a file of which the list of hosts is requested to be changed
	 * @param host a host requested to be added to the list of hosts of the file
	 */
	public MCAddDownloadFileHost(File file, Host host){
		super(ModelCommandType.ADD_DOWNLOAD_FILE_HOST);
		this.file = file;
		this.host = host;
	}

	/**
	 * @return the file of which the list of hosts is requested to be changed
	 */
	public File getFile() {
		return file;
	}

	/**
	 * @return the host requested to be added to the list of hosts of the file
	 */
	public Host getHost() {
		return host;
	}
}
